<%--
  Created by IntelliJ IDEA.
  User: ymwm9
  Date: 2024/4/5
  Time: 22:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>贵美商城-商品分类页</title>
    <link rel="stylesheet"	type="text/css"	href="css/global.css"	/>
    <link rel="stylesheet"	type="text/css"	href="css/layout.css"	/>
    <script type="text/JavaScript" defer="true">
        var oImg=document.getElementById("show").getElementsByTagName("img");
        for(var i=1;i<=(oImg.length-3);i++){
            oImg[i].onmouseover=function(){oImg[0].src=this.src.replace('.jpg','_big.jpg');
                this.style.border='2px #ff7300 solid';}
            oImg[i].onmouseout=function(){this.style.border='2px #ccc solid';}
        }
    </script>
</head>
<body>
<div id="container">
    <iframe id="header" src="header.jsp" width="980" height="136" frameborder="0" scrolling="no"></iframe>
    <div class="good">
        <h1><c:forEach items="${newshowproducts}" var="product8" varStatus="s">
            ${product8.pname}
        </c:forEach></h1>
        <ul class="f_l" id="show">
            <c:forEach items="${newshowproducts}" var="product8" varStatus="s">
                <li class="bigimg"><a href="buy.jsp"><img src="${product8.pimage}" alt="${product8.pname}" style="width: 300px; height: 200px; object-fit: cover;" /></a></li>
            </c:forEach>

            <li class="op clear f_l"><a href="#"><img src="images/share.gif" alt="分享" /></a></li>
            <li class="op f_l"><a href="#"><img src="images/favthis.gif" alt="藏" /></a></li>
        </ul>
        <ul class="goodinfo f_l">

            <c:forEach items="${newshowproducts}" var="product8" varStatus="s">
                <li>一 口 价：<span>${product8.shop_price}</span></li>
                <li>运　　费：<span>免运费</span></li>
                <li class="h74 buynow"><a href="http://localhost:8080/mall/buyController?action=findAll"><img src="images/buynow.gif" alt="alt"  /></a></li>
                <li class="onlinepay">此商品支持<a href="#">网银支付</a>，网上汇款免手续费。<br />收货满意后出售者才能拿钱，货款都安全！</li>
                <li>上架时间：<span>${product8.pdate}</span></li>
                <li>本期售出：<span>2件</span></li>
                <li>累计售出：<span>8件</span></li>
                <li class="f_l w175">商品类型：<span>全新</span></li>
                <li>所 在 地：<span>山西太原</span></li>
                <li class="f_l w175">商品数量：<span>1件</span></li>
                <li>浏 览 量：<span>17次</span></li>
            </c:forEach>

        </ul>
    </div>
    <iframe id="footer" src="footer.jsp" width="980" height="136" frameborder="0" scrolling="no"></iframe>
</div> <!--container end-->
</body>
</html>
